#while
list=["lan","wang","fang"]
i=0
while i<len(list):
    print(list[i])
    i+=1

#for
for i in list:
    print(i)